package com.atguigu.test;

public class Operator {
    public static void main(String[] args) {

        boolean a = true;
        boolean b = false;
        int c = 5;
        int d = 3;

        System.out.println(a && b);
        System.out.println(a || b);
        System.out.println(!a);
        System.out.println(a ^ b);

        System.out.println("-----");

        System.out.println(c & d);
        System.out.println(c | d);
        System.out.println(~c);
        System.out.println(c ^ d);
    }
}
